package com.cn.crmsystem.utils;

import java.text.SimpleDateFormat;
import java.util.Date;
//from ldk
public class DateUtil {
    public static String dateFormatString(Date date){
      return  dateFormatString(date,"yyyy-MM-dd");

    }

    public static String dateFormatString(Date date,String pattern) {

        SimpleDateFormat sdf=new SimpleDateFormat(pattern);
        return  sdf.format(new Date());

    }
}
